package org.yogurtcat.server.modules.system.role.service;

import java.util.List;
import java.util.Map;
import java.util.Optional;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.yogurtcat.server.modules.system.role.domain.Role;

/**
 * 用户业务接口
 * @author heaven
 *
 */
public interface RoleService {
	
	Page<Role> list(Optional<Role> condition, PageRequest pageRequest);

	Role save(Role data);

	void deleteById(Long id);

	Role findById(Long id);

	Role savePermission(Role data);

	Role saveMenu(Role data);

	List<Map<String, Object>> optionlist();

	Role findByName(String name);
}
